<html>

    <head>
        <meta charset="UTF-8">
    </head>
    
    <body>

        <span>用户名</span>
        <input id="username">
        <p></p>
        <span>密码</span>
        <input id="password" type="password">
        <p></p>
    
        <button id="btn">登录</button>
        
        <script>
            var username = document.getElementById('username');
            var password = document.getElementById('password');
            var btn = document.getElementById('btn');
            
            btn.onclick = function() {
                
                var name = username.value;//拿到用户名
                var pwd = password.value;
                
                window.location.href = 'leo://' + name + '?' + pwd;
            }
        </script>
    </body>

</html>